



def check_response(func):
    def inner(self, response, *args, **kwargs):
        if response.status == 200:
            return func(self, response, *args, **kwargs)
        else:
            print_save_txt('请求失败{}'.format(response))
    return inner